package edu.java.homework.hw09.exercises.salads.salads;

import edu.java.homework.hw09.exercises.salads.components.*;
import edu.java.homework.hw09.exercises.salads.products.*;

public class ShoppSalad extends Salad {

    // --- Constructors ----------------------------------------------------
    public ShoppSalad() {
	super();
    }

    public ShoppSalad(Components components) {
	super(components);
    }

    public ShoppSalad(Components components, int price) {
	super(components, price);
    }

    // --- Methods -------------------------------------------------------------
    @Override
    public String getSaladName() {
	return "Shopp Salad";
    }
    
    @Override
    public final void prepareComponents() {
	// 100 гр домати, 50 гр краставици, 1 малка сурова лютива пиперка,
	// 20 гр лук, 10 гр зелена чушка, 5 маслини, 10 гр магданоз,
	// 50 г бяло саламурено сирене,
	// 5 гр сол.

	// vegetables
	VegetableComponent tomato = new VegetableComponent(Vegetable.TOMATO,
		100);
	VegetableComponent cucumber = new VegetableComponent(
		Vegetable.CUCUMBER, 50);
	VegetableComponent onion = new VegetableComponent(Vegetable.ONION, 20);
	VegetableComponent redHotPepper = new VegetableComponent(
		Vegetable.RAW_HOT_PEPPER, 1);
	VegetableComponent greenPapper = new VegetableComponent(
		Vegetable.RAW_GREEN_PEPPER, 10);
	VegetableComponent olive = new VegetableComponent(Vegetable.OLIVE, 5);
	VegetableComponent parsley = new VegetableComponent(Vegetable.PARSLEY,
		10);
	VegetableComponent[] vegetables = new VegetableComponent[] { tomato,
		cucumber, onion, redHotPepper, greenPapper, olive, parsley };

	// milk
	MilkComponent whiteCheese = new MilkComponent(MilkProduct.WHITE_CHEESE,
		50);

	MilkComponent[] milkComponents = new MilkComponent[] { whiteCheese };

	// spices
	SpiceComponent salt = new SpiceComponent(Spice.SALT, 5);
	SpiceComponent[] spices = new SpiceComponent[] { salt };

	// instantiate Components object
	Components components = new Components(vegetables, null, null,
		milkComponents, null, spices);
	this.setComponents(components);
    }
}